package cn.bugstack.infrastructure.persistent.dao;

import cn.bugstack.infrastructure.persistent.po.StrategyRule;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface IStrategyRuleDao {
    int deleteByPrimaryKey(Long id);

    int insert(StrategyRule record);

    int insertSelective(StrategyRule record);

    StrategyRule selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(StrategyRule record);

    int updateByPrimaryKey(StrategyRule record);

    StrategyRule queryStrategyRule(@Param("strategyId") Long strategyId, @Param("ruleModel") String ruleModel);

    String queryStrategyRuleValue(StrategyRule strategyRule);
}